<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableUserVipOpeLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_vip_ope_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('用户id');
            $table->integer('vip_id')->commeng('会员id');
            $table->string('vip_info')->comment('会员基础信息快照');
            $table->string('user_vip_info')->comment('用户会员信息快照');
            $table->integer('yz_payment_id')->index()->default(0)->comment('支付VIP订单id');
            $table->string('remark', '12')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('user_vip_ope_logs');
    }
}
